package com.chen.domain;

import com.chen.annotation.Excel;
import com.chen.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 产品问题 对象 t_product_version_problem
 *

 * @date 2021-08-31
 */
public class ProductVersionProblem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
    private Long problemId;

    /**
     * 问题反馈内容
     */
    @Excel(name = "问题反馈内容")
    private String problem;

    /**
     * 反馈人id
     */

    private Long feedbackUserId;
    @Excel(name = "反馈人")
    private String feedbackUserName;

    /**
     * 反馈时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date feedbackTime;

    /**
     * 回复内容
     */
    @Excel(name = "回复内容")
    private String answer;

    /**
     * 回复人id
     */

    private Long answerUserId;
    @Excel(name = "回复人")
    private String answerUserName;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerTime;

    /**
     * 状态  1 未回复 0 已回复
     */
    @Excel(name = "状态" ,readConverterExp ="0=已回复,1=未回复" )
    private String status;

    /**
     * 0外部原因 1 不予处理
     */
    @Excel(name = "问题类型",readConverterExp ="0=外部原因,1=不予处理")
    private String  problemType;

    /**
     * 产品id
     */
    private Long productId;

    public void setProblemId(Long problemId) {
        this.problemId = problemId;
    }

    public Long getProblemId() {
        return problemId;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getProblem() {
        return problem;
    }

    public void setFeedbackUserId(Long feedbackUserId) {
        this.feedbackUserId = feedbackUserId;
    }

    public Long getFeedbackUserId() {
        return feedbackUserId;
    }

    public void setFeedbackTime(Date feedbackTime) {
        this.feedbackTime = feedbackTime;
    }

    public Date getFeedbackTime() {
        return feedbackTime;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswerUserId(Long answerUserId) {
        this.answerUserId = answerUserId;
    }

    public Long getAnswerUserId() {
        return answerUserId;
    }

    public void setAnswerTime(Date answerTime) {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime() {
        return answerTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public String getFeedbackUserName() {
        return feedbackUserName;
    }

    public void setFeedbackUserName(String feedbackUserName) {
        this.feedbackUserName = feedbackUserName;
    }

    public String getAnswerUserName() {
        return answerUserName;
    }

    public void setAnswerUserName(String answerUserName) {
        this.answerUserName = answerUserName;
    }

    public String getProblemType() {
        return problemType;
    }

    public void setProblemType(String problemType) {
        this.problemType = problemType;
    }

    @Override
    public String toString() {
        return "ProductVersionProblem{" +
                "problemId=" + problemId +
                ", problem='" + problem + '\'' +
                ", feedbackUserId=" + feedbackUserId +
                ", feedbackUserName=" + feedbackUserName +
                ", feedbackTime=" + feedbackTime +
                ", answer='" + answer + '\'' +
                ", answerUserId=" + answerUserId +
                ", answerUserName=" + answerUserName +
                ", answerTime=" + answerTime +
                ", status='" + status + '\'' +
                ", problemType='" + problemType + '\'' +
                ", productId=" + productId +
                '}';
    }
}
